package com.ruoyi.worker.mapper.attendance;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.worker.domain.workAttendance.AttendanceSalary;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName AttendanceSalaryMapper
 * @Description 长期工工资
 * @Author leizhang
 * Date 2021/11/28 1:43 下午
 * @Version 1.0
 **/
public interface AttendanceSalaryMapper {
    /**
     * @param attendanceSalary
     * @return java.util.List<com.ruoyi.worker.domain.workAttendance.AttendanceSalary>
     * @Description : 长期工工资信息查询
     * @Author : leizhang
     * @Date 1:46 下午 2021/11/28
     **/
    List<AttendanceSalary> listOfAttendanceSalary(AttendanceSalary attendanceSalary);

    /**
     * @param s
     * @return java.util.List<com.ruoyi.common.core.domain.entity.SysDept>
     * @Description :岗位补贴信息查询
     * @Author : leizhang
     * @Date 1:58 下午 2021/11/28
     **/
    List<SysDept> getDeptRecords(SysDept s);

    /**工资记录保存**/
    void saveAttendanceSalary(List<AttendanceSalary> attendanceSalaries,int sumId);

    /**
     * 查询长期工工资
     *
     * @param id 长期工工资主键
     * @return 长期工工资
     */
     AttendanceSalary selectRzAttendanceSalaryById(int id);

    /**
     * 查询长期工工资列表
     *
     * @param rzAttendanceSalary 长期工工资
     * @return 长期工工资集合
     */
     List<AttendanceSalary> selectRzAttendanceSalaryList(AttendanceSalary rzAttendanceSalary);
    /**
     * 修改长期工工资
     *
     * @param rzAttendanceSalary 长期工工资
     * @return 结果
     */
    public int updateRzAttendanceSalary(AttendanceSalary rzAttendanceSalary);

}
